package work3;

import Uti.ScannerUti;
import work3.work1.CustomerGoodsAdmin;
import work3.work2.PrimeDetermination;
import work3.work3.WareHouse;
import work3.work4.Context;
import work3.work5.StudentInfoManagement;

public class Works3 {
    public static void Work() {
        while (true) {
            System.out.println("请选择题目序号：1——题目1： 2——题目2： 3——题目3： 4——题目4：5——题目5： 0——退出");
            int kk = ScannerUti.getInt();
            if (kk == 1) doWork1();
            else if (kk == 2) doWork2();
            else if (kk == 3) doWork3();
            else if (kk == 4) doWork4();
            else if (kk == 5) doWork5();
            else if (kk == 0) break;
        }
    }

    public static void doWork1() {
        new CustomerGoodsAdmin();
    }

    public static void doWork2() {
        new PrimeDetermination();
    }

    public static void doWork3() {
         new WareHouse();
    }

    public static void doWork4() {
        new Context();
    }
    public static void doWork5() {
        new StudentInfoManagement();
    }
}
